From: Bastien Nocera Date: Mon, 13 Feb 2017 10:10:19 +0000 (+0100) Subject: portalHelper: Fix runtime warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~562 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=98cdd4454323ca04f49a1c4f46f404fd2b6a3efd;p=gnome-shell.git portalHelper: Fix runtime warning When there is no URI, then the title should be empty, not null: Gjs-WARNING **: JS ERROR: Error: Argument 'str' (type utf8) may not be null https://bugzilla.gnome.org/show_bug.cgi?id=778552 --- diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index ccbe77b88..6070af2cc 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -176,7 +176,7 @@ const PortalWindow = new Lang.Class({ if (uri) this._headerBar.setSubtitle(GLib.uri_unescape_string(uri, null)); else - this._headerBar.setSubtitle(null); + this._headerBar.setSubtitle(''); }, refresh: function() {